#include<stdio.h>

void count(char *arr, int &words, int &nums)
{
	int i = 0;
	while (arr[i] != '\0')
	{
		if ((arr[i] >= 'a' && arr[i] <= 'z') || (arr[i] >= 'A' && arr[i] <= 'Z'))
		{
			words++;
		}
		if (arr[i] >= '0' && arr[i] <= '9')
		{
			nums++;
		}
		i++;
	}
	
}

int main()
{
	char arr[100] = {0};
	scanf("%s", arr);
	int words = 0, nums = 0;
	count(arr, words, nums);
	printf("%d,%d\n", words, nums);

	return 0;
}

 
